import { _decorator, Component, Node, Sprite } from 'cc';
import { Loader } from '../tools/LoadManger';
import { GameData } from '../system/GameData';
const { ccclass, property } = _decorator;

@ccclass('Stiff')
export class StuffIcon extends Component {

    ShowStuff(num: number) {
        Loader.GetTurnTableRewardImage("rewardIcon/" + GameData.mRes[num], (spf) => {
            this.node.getComponent(Sprite).spriteFrame = spf;
        })
    }
}


